package com.shelpe.services.lexicon.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import com.shelpe.services.lexicon.constants.Origin;

import lombok.Getter;
import lombok.Setter;

@Document(collection = "keyword_relations")
@Setter
@Getter
public class KeywordRelation extends BaseEntity{

	@Id
	private String relationID;
	
	private Origin origin = Origin.taobao;// 来源
	@Indexed
	private long adgroupID;// 推广编号，当来源为淘宝时有效
	@Indexed
	private String adgroupRecordID;
	
	@Indexed
	private String sourceWord;
	@Indexed
	private String targetWord;
	
	private int weight;
}
